package br.com.softclinica.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTextField;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JRadioButton;
import javax.swing.UIManager;
import javax.swing.JTable;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.border.LineBorder;
import java.awt.Color;
import javax.swing.SwingConstants;
import javax.swing.JScrollPane;


public class TAgendamentoConsultas extends JFrame {

	private JPanel contentPane;
	private JTextField tfNome;
	private JTable table_1;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel("javax.swing.plaf.nimbus.NimbusLookAndFeel");
		} catch (Throwable e) {
			e.printStackTrace();
		}
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TAgendamentoConsultas frame = new TAgendamentoConsultas();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TAgendamentoConsultas() {
		setTitle("Agendamento");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 664, 512);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		tfNome = new JTextField();
		tfNome.setBounds(142, 19, 316, 28);
		contentPane.add(tfNome);
		tfNome.setColumns(10);
		
		JLabel lblNome = new JLabel("Paciente:");
		lblNome.setHorizontalAlignment(SwingConstants.RIGHT);
		lblNome.setBounds(74, 25, 56, 16);
		contentPane.add(lblNome);
		
		JButton btnNewButton = new JButton("Pesquisar");
		btnNewButton.setBounds(470, 22, 110, 23);
		contentPane.add(btnNewButton);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"Janeiro", "Fevereiro", "Mar\u00E7o", "Abril", "Maio", "Jnunho", "Agosto", "Setembro", "Ouubro", "Novembro", "Dezembro"}));
		comboBox.setBounds(317, 55, 84, 22);
		contentPane.add(comboBox);
		
		JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setModel(new DefaultComboBoxModel(new String[] {"2013", "2014", "2015", "2016", "2017", "2018", "2019", "2020"}));
		comboBox_1.setBounds(497, 55, 83, 22);
		contentPane.add(comboBox_1);
		
		JLabel lblNewLabel = new JLabel("M\u00EAs:");
		lblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);
		lblNewLabel.setBounds(271, 58, 42, 16);
		contentPane.add(lblNewLabel);
		
		JLabel lblNewLabel_1 = new JLabel("Ano:");
		lblNewLabel_1.setHorizontalAlignment(SwingConstants.RIGHT);
		lblNewLabel_1.setBounds(449, 60, 36, 16);
		contentPane.add(lblNewLabel_1);
		
		JButton btnCancelar = new JButton("Sair");
		btnCancelar.setBounds(482, 436, 98, 26);
		contentPane.add(btnCancelar);
		
		JScrollPane scrollPane = new JScrollPane();
		scrollPane.setBounds(74, 83, 506, 268);
		contentPane.add(scrollPane);
		
		table_1 = new JTable();
		table_1.setShowVerticalLines(true);
		table_1.setShowHorizontalLines(true);
		scrollPane.setViewportView(table_1);
		table_1.setModel(new DefaultTableModel(
			new Object[][] {
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
				{null, null, null, null},
			},
			new String[] {
				"Horario", "Paciente", "Funcionario Responsavel", "Tratamento"
			}
		));
		table_1.getColumnModel().getColumn(0).setPreferredWidth(51);
		table_1.getColumnModel().getColumn(1).setPreferredWidth(100);
		table_1.getColumnModel().getColumn(2).setPreferredWidth(154);
		
		JComboBox comboBox_2 = new JComboBox();
		comboBox_2.setModel(new DefaultComboBoxModel(new String[] {"01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "30", "31"}));
		comboBox_2.setBounds(121, 55, 65, 26);
		contentPane.add(comboBox_2);
		
		JLabel lblDia = new JLabel("Dia:");
		lblDia.setHorizontalAlignment(SwingConstants.RIGHT);
		lblDia.setBounds(74, 60, 42, 16);
		contentPane.add(lblDia);
		
		JPanel panel = new JPanel();
		panel.setBorder(new LineBorder(new Color(0, 0, 0)));
		panel.setBounds(74, 359, 506, 66);
		contentPane.add(panel);
		panel.setLayout(null);
		
		JComboBox comboBox_3 = new JComboBox();
		comboBox_3.setBounds(6, 34, 78, 26);
		panel.add(comboBox_3);
		comboBox_3.setModel(new DefaultComboBoxModel(new String[] {"08:00", "08:30", "09:00", "09:30", "10:00", "10:30", "11:00", "11:30", "12:00", "12:30", "13:00"}));
		
		JComboBox comboBox_4 = new JComboBox();
		comboBox_4.setBounds(94, 34, 98, 26);
		panel.add(comboBox_4);
		comboBox_4.setModel(new DefaultComboBoxModel(new String[] {"funcionario"}));
		
		JComboBox comboBox_5 = new JComboBox();
		comboBox_5.setBounds(204, 34, 105, 26);
		panel.add(comboBox_5);
		comboBox_5.setModel(new DefaultComboBoxModel(new String[] {"Tratamentos"}));
		
		JButton btnAgendar = new JButton("Agendar");
		btnAgendar.setBounds(422, 33, 78, 28);
		panel.add(btnAgendar);
		
		JLabel lblAgendamento = new JLabel("Agendamento:");
		lblAgendamento.setBounds(6, 6, 89, 16);
		panel.add(lblAgendamento);
	}
}
